<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<div id="header">
	<div id="header-inner">
		<div id="askLoading"></div>
		<div class="header-left">
			<h1 title="优问网">
				<span>优问网</span> <a class="header-logo"
					href="http://yoasking.com"><img alt="优问网" title="优问网"
					src="/img/wayin-logo.png" /></a> <a id="header-ask-buton" href="###">我来问一个</a>
			</h1>
		</div>
		<div class="header-right">
			<div id="header-user">
				<a href="#" class="header-user-a"> <span
					class="header-user-icon" style="background-image:url(<s:property value='loginUser.avatarPath' />)"></span> <span class="header-user-dropdown"></span>
					<span class="header-username"><s:property value="loginUser.nickname" /></span>
				</a>
				<div id="header-setnav">
					<a href="http://www.yoasking.com/user/<s:property value="loginUser.id"/>">我的优问</a> <a href="###" onclick="toSettingPage()">设置</a> 
					<a id="x1-logout" href="#" onclick="logout();">退出</a>
				</div>
			</div>
			<div id="header-notification">
				<a class="noti-a" href="###"></a>
				<div class="header-notification-pop">
					<ul>
						<li>通知</li>
						<li>
							<dl>
								<dt>
									<img src="/img/face.jpg" />
								</dt>
								<dd>
									<a href="###">You are now the Mayor ofwww.yoasking.comwith
										1 like;</a>
								</dd>
								<dd>about 11 hours ago</dd>
							</dl>
						</li>
					</ul>
				</div>
			</div>
			<div id="header-search">
				<input type="text" value="找朋友" />
			</div>
		</div>
		<div class="clear"></div>
		<input type="hidden" id="loginUserId" value="<s:property value='loginUser.id'/>"/>
	</div>
</div>
<script type="text/javascript">
	$(function() {
		$('#header-ask-buton').click(askInit);
		headSetting();
		headnotification();
	});
</script>